package xna.android.Telas;

import xna.android.Game1;
import android.content.Context;
import android.graphics.Canvas;
import android.util.Log;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.SurfaceView;

public class Intro extends SurfaceView
{
	private static final String TAG = Intro.class.getSimpleName();
	
	public Intro(Context Content)
	{
		super(Content);
		
		
	}
	
	public void Update()
	{
		
	}
	
	public void Draw(Canvas spriteBatch)
	{
		
	}

	public boolean onTouchEvent(MotionEvent event) 
	{
		
		return true;
	}
	

	public boolean onKeyDown(int keyCode, KeyEvent event)
	{
		switch (keyCode)
		{
		case KeyEvent.KEYCODE_DPAD_RIGHT:
			if(Game1.DEBUG)
			Log.d(TAG, "KEYCODE_DPAD_RIGHT");
			break;
		case KeyEvent.KEYCODE_DPAD_UP:
			if(Game1.DEBUG)
			Log.d(TAG, "KEYCODE_DPAD_UP");
			break;
		case KeyEvent.KEYCODE_DPAD_LEFT:
			if(Game1.DEBUG)
			Log.d(TAG, "KEYCODE_DPAD_LEFT");
			break;
		case KeyEvent.KEYCODE_DPAD_DOWN:
			if(Game1.DEBUG)
			Log.d(TAG, "KEYCODE_DPAD_DOWN");
			break;

		default:
			if(Game1.DEBUG)
			Log.d(TAG, "DEFAULT");
			break;
		}
		return true;
	}
	
	public boolean onKeyUp(int keyCode, KeyEvent event)
	{
		switch (keyCode)
		{
		case KeyEvent.KEYCODE_DPAD_RIGHT:
			if(Game1.DEBUG)
			Log.d(TAG, "KEYCODE_DPAD_RIGHT");
			break;
		case KeyEvent.KEYCODE_DPAD_UP:
			if(Game1.DEBUG)
			Log.d(TAG, "KEYCODE_DPAD_UP");
			break;
		case KeyEvent.KEYCODE_DPAD_LEFT:
			if(Game1.DEBUG)
			Log.d(TAG, "KEYCODE_DPAD_LEFT");
			break;
		case KeyEvent.KEYCODE_DPAD_DOWN:
			if(Game1.DEBUG)
			Log.d(TAG, "KEYCODE_DPAD_DOWN");
			break;

		default:
			if(Game1.DEBUG)
			Log.d(TAG, "DEFAULT");
			break;
		}
		return true;
	}
}